function mice_checkbox(name,labels,values,defaultvalue,disabledvalue){
	var arr=labels.split("~");
	var arr2=values.split("~");
	var arr3=disabledvalue.split("~");
	var ck="",bc="";
	for(var i=0;i<arr.length;i++){
		if (arr[i].length>0){
			var McLabel=arr[i];
			var McValue=arr2[i];
			if((","+defaultvalue+",").replace(/ ,/g, ',').indexOf(","+McValue+",")!=-1){
				ck=" checked";cls="cked";
			}else{
				ck="";cls="nock";
			}
			var thisstr="<label class=\""+cls+"\" for=\"i_"+name+"_"+i+"\" id=\"l_"+name+"_"+i+"\">";
			thisstr+="<input "+ arr3[i] +" class=\"checkbox\" onpropertychange=\"document.getElementById('l_"+name+"_"+i+"').className=(document.getElementById('i_"+name+"_"+i+"').checked)?'cked':'nock';\" onclick=\"document.getElementById('l_"+name+"_"+i+"').className=(document.getElementById('i_"+name+"_"+i+"').checked)?'cked':'nock';\" type=\"checkbox\""+ck+" name=\""+name+"\" id=\"i_"+name+"_"+i+"\" value=\""+McValue+"\" \/> ";
			thisstr+=McLabel+"</label>";
			document.write(thisstr);
		}
	}
}
function mice_checkbox_getvalue(o){
	var allvalue="";
	if(typeof(o)=="undefined"){return "";}
	if (typeof(o.length)=="undefined"){
		if(o.checked){return o.value+ ",";}else{return "";}
	}
	for(var i=0;i<o.length;i++){
		if(o[i].checked){
			allvalue +=o[i].value;
		}
	}

	document.getElementById("category_id").value=allvalue;
	return true;
}